package com.wyw.hemerocallis;

import com.wyw.hemerocallis.conf.DataSourceProxyAutoConfiguration;
import com.wyw.hemerocallis.config.AsyncPoolConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 类/方法简述
 *  http://127.0.0.1:8001/hemerocallis-goods-service/doc.html
 * @author Mr Wu    yewen.wu.china@gmail.com
 * <p>
 * Update History:
 * Author        Time            Content
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableJpaAuditing
@EnableSwagger2
@Import(DataSourceProxyAutoConfiguration.class) // 这里不需要引入，但是为了显示更明显，这样看出来，以便其他人在使用时，未注意
public class GoodsApplication {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class, args);
    }

}
